package edu.xmut.kakamusic.fragment.video;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import edu.xmut.kakamusic.R;

public class VideoIntroductionFragment extends Fragment {

    private final String introduction;

    public VideoIntroductionFragment(String introduction) {
        this.introduction = introduction;
    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View root = inflater.inflate(R.layout.fragment_video_introduction, container, false);
        TextView textView = root.findViewById(R.id.tv_video_introduction);
        textView.setText(introduction);
        return root;
    }
}
